package com.scroll.demo.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.scroll.demo.R;
import com.scroll.demo.bean.StudentBean;

import java.util.List;

/**
 * <pre>
 *     project name: RecyclerViewInRecyclerView-master
 *     author      : 李琼
 *     create time : 2018/1/30 下午10:46
 *     desc        : 描述--//HorizontalAdapter
 *     Reference   :
 *     modifier               :
 *     modification time      :
 *     modify remarks         :
 *     @version: --//1.0
 * </pre>
 */


public class HorizontalAdapter extends BaseQuickAdapter<StudentBean, BaseViewHolder> {
    public HorizontalAdapter(@Nullable List<StudentBean> dataSet) {
        super(R.layout.item_horizontal, dataSet);
    }

    @Override
    protected void convert(BaseViewHolder helper, StudentBean item) {

        helper.setText(R.id.horizontal_text, item.getStudentName() + " / " + item.getStudentAge());

    }
}
